Analyzes the expression entered, transforming subexpressions of the form (a1 * log (b1) + a2 * log (b2) + c) into log (b1 ^ a1 * b2 ^ a2) + c